package com.labo.erpcrm.bean;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

import com.labo.erpcrm.dao.ClientDao;

public class Commande {

	private int id_commande;
	private int id_client;
	private double prix;
	private Date date_commande;
	private Date date_livraison;
	private Date date_reception;
	private ClientDao clientDAO;
	private Client client;

	public Commande() {
		super();
		clientDAO = new ClientDao();
	}

	public int getId_client() {
		return id_client;
	}
	public void setId_client(int id_client) {
		this.id_client = id_client;
	}
	public double getPrix() {
		return prix;
	}
	public void setPrix(double prix) {
		this.prix = prix;
	}
	public Date getDate_commande() {
		return date_commande;
	}
	public void setDate_commande(Date date_commande) {
		this.date_commande = date_commande;
	}
	public Date getDate_livraison() {
		return date_livraison;
	}
	public void setDate_livraison(Date date_livraison) {
		this.date_livraison = date_livraison;
	}
	public Date getDate_reception() {
		return date_reception;
	}
	public void setDate_reception(Date date_reception) {
		this.date_reception = date_reception;
	}
	public int getId_commande() {
		return id_commande;
	}
	public void setId_commande(int id_commande) {
		this.id_commande = id_commande;
	}

	public Client getClient() {
		return clientDAO.GetById(this.id_client);
	}

	public void setClient(Client client) {
		this.client = client;
	}

}
